<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>药品详情 - 家庭药品管理</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <link rel="stylesheet" href="css/common.css">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#16a34a',
                        secondary: '#4ade80',
                        dark: '#1e293b',
                        light: '#f8fafc'
                    }
                }
            }
        }
    </script>
    <style>
        /* iPhone 15 模拟外壳样式 */
        .iphone-frame {
            width: 390px;
            height: 844px;
            border-radius: 44px;
            background-color: #000;
            margin: 20px auto;
            position: relative;
            overflow: hidden;
            box-shadow: 0 0 0 10px #111, 0 0 0 11px #333, 0 20px 50px rgba(0, 0, 0, 0.3);
        }
        
        /* 顶部刘海区域 */
        .iphone-notch {
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 200px;
            height: 30px;
            background-color: #000;
            border-radius: 0 0 20px 20px;
            z-index: 10;
        }
        
        /* 底部安全区域 */
        .iphone-home-indicator {
            position: absolute;
            bottom: 8px;
            left: 50%;
            transform: translateX(-50%);
            width: 120px;
            height: 5px;
            background-color: rgba(255, 255, 255, 0.6);
            border-radius: 5px;
            z-index: 10;
        }
        
        /* 顶部状态栏 */
        .iphone-status-bar {
            height: 50px;
            background-color: #fff;
            padding-top: 15px;
            padding-left: 20px;
            padding-right: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 14px;
            font-weight: 600;
        }
        
        /* 内容区域 */
        .iphone-content {
            height: calc(100% - 50px - 83px);
            background-color: #f8fafc;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding: 20px;
        }
        
        /* 底部导航栏 */
        .iphone-nav {
            height: 83px;
            background-color: white;
            border-top: 1px solid #e5e7eb;
            display: flex;
            justify-content: space-around;
            align-items: center;
            position: absolute;
            bottom: 0;
            width: 100%;
        }
        
        /* 导航项样式 */
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #9ca3af;
            text-decoration: none;
            font-size: 12px;
        }
        
        .nav-item.active {
            color: #16a34a;
        }
        
        .nav-item i {
            font-size: 22px;
            margin-bottom: 5px;
        }
        
        /* 页面头部样式 */
        .page-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .page-header h1 {
            font-size: 18px;
            font-weight: 600;
            color: #1e293b;
        }
        
        /* 卡片样式 */
        .card {
            background-color: white;
            border-radius: 12px;
            margin-bottom: 16px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }
        
        .card-header {
            padding: 16px 20px;
            border-bottom: 1px solid #f1f5f9;
        }
        
        .card-title {
            font-size: 16px;
            font-weight: 600;
            color: #1e293b;
        }
        
        .card-body {
            padding: 20px;
        }
        
        /* 药品信息项样式 */
        .info-item {
            display: flex;
            padding: 12px 0;
            border-bottom: 1px solid #f1f5f9;
        }
        
        .info-item:last-child {
            border-bottom: none;
        }
        
        .info-label {
            width: 80px;
            font-weight: 500;
            color: #64748b;
            flex-shrink: 0;
        }
        
        .info-value {
            flex: 1;
            color: #1e293b;
        }
        
        /* 操作按钮样式 */
        .action-button {
            width: 100%;
            padding: 14px;
            border-radius: 12px;
            font-weight: 600;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
            border: none;
            cursor: pointer;
        }
        
        /* 药物提醒样式 */
        .reminder-time {
            background-color: #f0fdf4;
            color: #16a34a;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            margin-right: 8px;
            margin-bottom: 8px;
            display: inline-block;
        }
    </style>
</head>
<body>
    <div class="iphone-frame">
        <!-- 顶部刘海 -->
        <div class="iphone-notch"></div>
        
        <!-- 状态栏 -->
        <div class="iphone-status-bar">
            <div>9:41</div>
            <div class="flex space-x-2">
                <i class="fa fa-signal"></i>
                <i class="fa fa-wifi"></i>
                <i class="fa fa-battery-full"></i>
            </div>
        </div>
        
        <!-- 内容区域 -->
        <div class="iphone-content">
            <!-- 顶部导航 -->
            <div class="page-header">
                <div class="flex items-center">
                    <button class="mr-4 w-8 h-8 flex items-center justify-center">
                        <i class="fa fa-arrow-left text-gray-600"></i>
                    </button>
                    <h1>药品详情</h1>
                </div>
                <div class="flex space-x-4">
                    <button class="text-gray-600">
                        <i class="fa fa-share-alt"></i>
                    </button>
                    <button class="text-gray-600">
                        <i class="fa fa-ellipsis-v"></i>
                    </button>
                </div>
            </div>

            <!-- 药品基本信息卡片 -->
            <div class="card mb-6">
                <div class="card-body">
                    <div class="flex items-center mb-6">
                        <div class="w-20 h-20 bg-blue-100 rounded-2xl flex items-center justify-center mr-4">
                            <i class="fa fa-pills text-blue-500 text-3xl"></i>
                        </div>
                        <div>
                            <h2 class="text-xl font-bold text-gray-800">布洛芬缓释胶囊</h2>
                            <p class="text-sm text-gray-500 mt-1">中美天津史克制药有限公司</p>
                        </div>
                    </div>
                    
                    <!-- 药品标签 -->
                    <div class="flex flex-wrap gap-2 mb-6">
                        <span class="px-3 py-1 bg-red-50 text-red-600 rounded-full text-xs">处方药</span>
                        <span class="px-3 py-1 bg-blue-50 text-blue-600 rounded-full text-xs">非医保</span>
                        <span class="px-3 py-1 bg-yellow-50 text-yellow-600 rounded-full text-xs">需冷藏</span>
                    </div>
                    
                    <!-- 药品信息列表 -->
                    <div class="info-item">
                        <div class="info-label">通用名</div>
                        <div class="info-value">布洛芬缓释胶囊</div>
                    </div>
                    <div class="info-item">
                        <div class="info-label">规格</div>
                        <div class="info-value">0.3g*20粒/盒</div>
                    </div>
                    <div class="info-item">
                        <div class="info-label">批准文号</div>
                        <div class="info-value">国药准字H10900089</div>
                    </div>
                    <div class="info-item">
                        <div class="info-label">生产企业</div>
                        <div class="info-value">中美天津史克制药有限公司</div>
                    </div>
                    <div class="info-item">
                        <div class="info-label">有效期至</div>
                        <div class="info-value">2025年08月</div>
                    </div>
                </div>
            </div>

            <!-- 用药提醒卡片 -->
            <div class="card mb-6">
                <div class="card-header">
                    <div class="card-title">用药提醒</div>
                </div>
                <div class="card-body">
                    <div class="mb-4">
                        <h3 class="font-medium text-gray-700 mb-2">提醒时间</h3>
                        <div class="flex flex-wrap">
                            <span class="reminder-time">
                                <i class="fa fa-clock-o mr-1"></i> 08:00
                            </span>
                            <span class="reminder-time">
                                <i class="fa fa-clock-o mr-1"></i> 20:00
                            </span>
                        </div>
                    </div>
                    <div class="mb-4">
                        <h3 class="font-medium text-gray-700 mb-2">用药剂量</h3>
                        <p class="text-gray-600">每次1粒，每日2次</p>
                    </div>
                    <div>
                        <h3 class="font-medium text-gray-700 mb-2">用药说明</h3>
                        <p class="text-gray-600">饭后服用，整粒吞服，不得咀嚼</p>
                    </div>
                </div>
            </div>

            <!-- 药品说明书卡片 -->
            <div class="card mb-6">
                <div class="card-header">
                    <div class="card-title">药品说明书</div>
                </div>
                <div class="card-body">
                    <div class="space-y-3 text-sm">
                        <div>
                            <h3 class="font-medium text-gray-700">适应症</h3>
                            <p class="text-gray-600">用于缓解轻至中度疼痛如头痛、关节痛、偏头痛、牙痛、肌肉痛、神经痛、痛经。也用于普通感冒或流行性感冒引起的发热。</p>
                        </div>
                        <div>
                            <h3 class="font-medium text-gray-700">用法用量</h3>
                            <p class="text-gray-600">成人一次1粒，一日2次（早晚各一次）。儿童用量请咨询医师或药师。</p>
                        </div>
                        <div>
                            <h3 class="font-medium text-gray-700">不良反应</h3>
                            <p class="text-gray-600">少数病人可出现恶心、呕吐、胃烧灼感或轻度消化不良、胃肠道溃疡及出血、转氨酶升高、头痛、头晕、耳鸣、视力模糊、精神紧张、嗜睡、下肢水肿或体重骤增。</p>
                        </div>
                        <button class="text-primary text-sm font-medium">查看完整说明书</button>
                    </div>
                </div>
            </div>

            <!-- 操作按钮 -->
            <div class="space-y-4">
                <button class="action-button bg-primary text-white">
                    <i class="fa fa-plus"></i>
                    <span>添加用药提醒</span>
                </button>
                <button class="action-button bg-gray-100 text-gray-800">
                    <i class="fa fa-edit"></i>
                    <span>编辑药品信息</span>
                </button>
            </div>
        </div>
        
        <!-- 底部导航栏 -->
        <div class="iphone-nav">
            <a href="index.html" class="nav-item">
                <i class="fa fa-home"></i>
                <span>首页</span>
            </a>
            <a href="medicine_management.html" class="nav-item active">
                <i class="fa fa-medkit"></i>
                <span>药品</span>
            </a>
            <a href="add_medicine.html" class="nav-item">
                <i class="fa fa-plus"></i>
                <span>添加</span>
            </a>
            <a href="reminder.html" class="nav-item">
                <i class="fa fa-bell"></i>
                <span>提醒</span>
            </a>
            <a href="profile.html" class="nav-item">
                <i class="fa fa-user"></i>
                <span>我的</span>
            </a>
        </div>
        
        <!-- 底部安全指示器 -->
        <div class="iphone-home-indicator"></div>
    </div>
</body>
</html>